13. Case Study in Python

Case Study in Python

Use the Jupyter notebook to analyze admission_data.csv to find the following values and for the quizzes below. Indexing, query, and groupby may come in handy!

  1. Proportion and admission rate for each gender
  2. Proportion and admission rate for physics majors of each gender
  3. Proportion and admission rate for chemistry majors of each gender
  4. Admission rate for each major

Code

If you need a code on the https://github.com/udacity.

QUIZ QUESTION::

Match the correct values

ANSWER CHOICES:



Feature

Value

Proportion of students that are female

Proportion of students that are male

Admission rate for females

Admission rate for males

SOLUTION:

Feature

Value

Proportion of students that are male

Admission rate for females

Admission rate for males

Proportion of students that are female

By only looking at gender and admission rates, who appears to be favored in the admissions process?

SOLUTION: Males

QUIZ QUESTION::

Match the correct values

ANSWER CHOICES:



Feature

Value

Proportion of females with physics majors

Proportion of males with physics majors

Admission rate for female physics majors

Admission rate for male physics majors

SOLUTION:

Feature

Value

Admission rate for male physics majors

Proportion of females with physics majors

Proportion of males with physics majors

Admission rate for female physics majors

Of the students applying as physics majors, who appears to be favored in the admissions process?

SOLUTION: Females

Who tends to have more physics majors than chemistry majors?

SOLUTION: Males

QUIZ QUESTION::

Match the correct values

ANSWER CHOICES:



Feature

Value

Proportion of females with chemistry majors

Proportion of males with chemistry majors

Admission rate for female chemistry majors

Admission rate for male chemistry majors

SOLUTION:

Feature

Value

Proportion of males with chemistry majors

Admission rate for female chemistry majors

Admission rate for male chemistry majors

Proportion of females with chemistry majors

Of the students applying as chemistry majors, who appears to be favored in the admissions process?

SOLUTION: Females

Who tends to have more chemistry majors than physics majors?

SOLUTION: Females

Which major has a lower admission rate?

SOLUTION: Chemistry

Reflect

QUESTION:

Take a moment to organize and explain what just happened.

ANSWER:

Can you think of other situations where Simpson's Paradox could occur?